export default function usePageBack() {
    const handlePageBack = () => {
        setTimeout(() => {
            window.opener = null;
            window.open('', '_self');
            window.close();
        }, 1000);
    };

    return {
        handlePageBack
    };
};